import Vue from "vue";
import Vuex from "vuex";
import createLogger from "vuex/dist/logger";

import getters from "./getters";

import business from "./modules/business";
import work from "./modules/work";
Vue.use(Vuex);

const isDevelopment = process.env.NODE_ENV === "development";

export default new Vuex.Store({
  getters,
  modules: {
    business,
    work,
  },
  strict: isDevelopment,
  plugins: isDevelopment ? [createLogger()] : [],
});
